var M=require("ming_node");


const MingMqttClient= require("./MingMqttClient.js");

mingMqttClient= new MingMqttClient(
    {   clientId:'emqx-connect-via-websocket1',
        brokerUrl:'tcp://mq.tongxinmao.com:18830',
        topics:["/public/TEST/webcli"],
        messageEvent(topic,msg){
             console.log(topic,msg);
        }
    }
)


const app= M.server();

app.listen(8888)
